package JsoupTest;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class Eg1 {
	public static void main(String[] args) {
		Document doc = Jsoup
				.parse("http://tratu.vietgle.vn/hoc-tieng-anh/cap-cau-song-ngu/vietgle-tra-tu/tat-ca/trang-4.html");

		 Elements images = doc.select(":contains(xe)");
		 for (Element image : images) {
		
		 System.out.println("\nsrc : " + image.attr("src"));
		 System.out.println("height : " + image.attr("height"));
		 System.out.println("width : " + image.attr("width"));
		 System.out.println("alt : " + image.attr("alt"));
		
		 }
	}
}
